package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class ChatRoomExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ChatRoomExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRoomNoIsNull() {
            addCriterion("room_no is null");
            return (Criteria) this;
        }

        public Criteria andRoomNoIsNotNull() {
            addCriterion("room_no is not null");
            return (Criteria) this;
        }

        public Criteria andRoomNoEqualTo(String value) {
            addCriterion("room_no =", value, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoNotEqualTo(String value) {
            addCriterion("room_no <>", value, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoGreaterThan(String value) {
            addCriterion("room_no >", value, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoGreaterThanOrEqualTo(String value) {
            addCriterion("room_no >=", value, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoLessThan(String value) {
            addCriterion("room_no <", value, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoLessThanOrEqualTo(String value) {
            addCriterion("room_no <=", value, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoLike(String value) {
            addCriterion("room_no like", value, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoNotLike(String value) {
            addCriterion("room_no not like", value, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoIn(List<String> values) {
            addCriterion("room_no in", values, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoNotIn(List<String> values) {
            addCriterion("room_no not in", values, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoBetween(String value1, String value2) {
            addCriterion("room_no between", value1, value2, "roomNo");
            return (Criteria) this;
        }

        public Criteria andRoomNoNotBetween(String value1, String value2) {
            addCriterion("room_no not between", value1, value2, "roomNo");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumIsNull() {
            addCriterion("m_chat_admin_num is null");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumIsNotNull() {
            addCriterion("m_chat_admin_num is not null");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumEqualTo(String value) {
            addCriterion("m_chat_admin_num =", value, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumNotEqualTo(String value) {
            addCriterion("m_chat_admin_num <>", value, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumGreaterThan(String value) {
            addCriterion("m_chat_admin_num >", value, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumGreaterThanOrEqualTo(String value) {
            addCriterion("m_chat_admin_num >=", value, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumLessThan(String value) {
            addCriterion("m_chat_admin_num <", value, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumLessThanOrEqualTo(String value) {
            addCriterion("m_chat_admin_num <=", value, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumLike(String value) {
            addCriterion("m_chat_admin_num like", value, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumNotLike(String value) {
            addCriterion("m_chat_admin_num not like", value, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumIn(List<String> values) {
            addCriterion("m_chat_admin_num in", values, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumNotIn(List<String> values) {
            addCriterion("m_chat_admin_num not in", values, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumBetween(String value1, String value2) {
            addCriterion("m_chat_admin_num between", value1, value2, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andMChatAdminNumNotBetween(String value1, String value2) {
            addCriterion("m_chat_admin_num not between", value1, value2, "mChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumIsNull() {
            addCriterion("f_chat_admin_num is null");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumIsNotNull() {
            addCriterion("f_chat_admin_num is not null");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumEqualTo(String value) {
            addCriterion("f_chat_admin_num =", value, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumNotEqualTo(String value) {
            addCriterion("f_chat_admin_num <>", value, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumGreaterThan(String value) {
            addCriterion("f_chat_admin_num >", value, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumGreaterThanOrEqualTo(String value) {
            addCriterion("f_chat_admin_num >=", value, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumLessThan(String value) {
            addCriterion("f_chat_admin_num <", value, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumLessThanOrEqualTo(String value) {
            addCriterion("f_chat_admin_num <=", value, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumLike(String value) {
            addCriterion("f_chat_admin_num like", value, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumNotLike(String value) {
            addCriterion("f_chat_admin_num not like", value, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumIn(List<String> values) {
            addCriterion("f_chat_admin_num in", values, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumNotIn(List<String> values) {
            addCriterion("f_chat_admin_num not in", values, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumBetween(String value1, String value2) {
            addCriterion("f_chat_admin_num between", value1, value2, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andFChatAdminNumNotBetween(String value1, String value2) {
            addCriterion("f_chat_admin_num not between", value1, value2, "fChatAdminNum");
            return (Criteria) this;
        }

        public Criteria andRoomNameIsNull() {
            addCriterion("room_name is null");
            return (Criteria) this;
        }

        public Criteria andRoomNameIsNotNull() {
            addCriterion("room_name is not null");
            return (Criteria) this;
        }

        public Criteria andRoomNameEqualTo(String value) {
            addCriterion("room_name =", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameNotEqualTo(String value) {
            addCriterion("room_name <>", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameGreaterThan(String value) {
            addCriterion("room_name >", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameGreaterThanOrEqualTo(String value) {
            addCriterion("room_name >=", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameLessThan(String value) {
            addCriterion("room_name <", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameLessThanOrEqualTo(String value) {
            addCriterion("room_name <=", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameLike(String value) {
            addCriterion("room_name like", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameNotLike(String value) {
            addCriterion("room_name not like", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameIn(List<String> values) {
            addCriterion("room_name in", values, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameNotIn(List<String> values) {
            addCriterion("room_name not in", values, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameBetween(String value1, String value2) {
            addCriterion("room_name between", value1, value2, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameNotBetween(String value1, String value2) {
            addCriterion("room_name not between", value1, value2, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomStatusIsNull() {
            addCriterion("room_status is null");
            return (Criteria) this;
        }

        public Criteria andRoomStatusIsNotNull() {
            addCriterion("room_status is not null");
            return (Criteria) this;
        }

        public Criteria andRoomStatusEqualTo(String value) {
            addCriterion("room_status =", value, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusNotEqualTo(String value) {
            addCriterion("room_status <>", value, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusGreaterThan(String value) {
            addCriterion("room_status >", value, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusGreaterThanOrEqualTo(String value) {
            addCriterion("room_status >=", value, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusLessThan(String value) {
            addCriterion("room_status <", value, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusLessThanOrEqualTo(String value) {
            addCriterion("room_status <=", value, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusLike(String value) {
            addCriterion("room_status like", value, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusNotLike(String value) {
            addCriterion("room_status not like", value, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusIn(List<String> values) {
            addCriterion("room_status in", values, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusNotIn(List<String> values) {
            addCriterion("room_status not in", values, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusBetween(String value1, String value2) {
            addCriterion("room_status between", value1, value2, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andRoomStatusNotBetween(String value1, String value2) {
            addCriterion("room_status not between", value1, value2, "roomStatus");
            return (Criteria) this;
        }

        public Criteria andMuopoIsNull() {
            addCriterion("muopo is null");
            return (Criteria) this;
        }

        public Criteria andMuopoIsNotNull() {
            addCriterion("muopo is not null");
            return (Criteria) this;
        }

        public Criteria andMuopoEqualTo(String value) {
            addCriterion("muopo =", value, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoNotEqualTo(String value) {
            addCriterion("muopo <>", value, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoGreaterThan(String value) {
            addCriterion("muopo >", value, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoGreaterThanOrEqualTo(String value) {
            addCriterion("muopo >=", value, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoLessThan(String value) {
            addCriterion("muopo <", value, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoLessThanOrEqualTo(String value) {
            addCriterion("muopo <=", value, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoLike(String value) {
            addCriterion("muopo like", value, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoNotLike(String value) {
            addCriterion("muopo not like", value, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoIn(List<String> values) {
            addCriterion("muopo in", values, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoNotIn(List<String> values) {
            addCriterion("muopo not in", values, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoBetween(String value1, String value2) {
            addCriterion("muopo between", value1, value2, "muopo");
            return (Criteria) this;
        }

        public Criteria andMuopoNotBetween(String value1, String value2) {
            addCriterion("muopo not between", value1, value2, "muopo");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}